using Google.ProtocolBuffers;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class SKBuiltinString_t : GeneratedMessageLite<SKBuiltinString_t, SKBuiltinString_t.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<SKBuiltinString_t, SKBuiltinString_t.Builder>
		{
			private bool resultIsReadOnly;
			private SKBuiltinString_t result;
			protected override SKBuiltinString_t.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override SKBuiltinString_t MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override SKBuiltinString_t DefaultInstanceForType
			{
				get
				{
					return SKBuiltinString_t.DefaultInstance;
				}
			}
			public string String
			{
				get
				{
					return this.result.String;
				}
				set
				{
					this.SetString(value);
				}
			}
			public Builder()
			{
				this.result = SKBuiltinString_t.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(SKBuiltinString_t cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private SKBuiltinString_t PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					SKBuiltinString_t other = this.result;
					this.result = new SKBuiltinString_t();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override SKBuiltinString_t.Builder Clear()
			{
				this.result = SKBuiltinString_t.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override SKBuiltinString_t.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new SKBuiltinString_t.Builder(this.result);
				}
				return new SKBuiltinString_t.Builder().MergeFrom(this.result);
			}
			public override SKBuiltinString_t BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override SKBuiltinString_t.Builder MergeFrom(IMessageLite other)
			{
				if (other is SKBuiltinString_t)
				{
					return this.MergeFrom((SKBuiltinString_t)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override SKBuiltinString_t.Builder MergeFrom(SKBuiltinString_t other)
			{
				return this;
			}
			public override SKBuiltinString_t.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override SKBuiltinString_t.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(SKBuiltinString_t._sKBuiltinStringTFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = SKBuiltinString_t._sKBuiltinStringTFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 10u)
					{
						if (WireFormat.IsEndGroupTag(num))
						{
							return this;
						}
						this.ParseUnknownField(input, extensionRegistry, num, text);
					}
					else
					{
						this.result.hasString = input.ReadString(ref this.result.string_);
					}
				}
				return this;
			}
			public SKBuiltinString_t.Builder SetString(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasString = true;
				this.result.string_ = value;
				return this;
			}
			public SKBuiltinString_t.Builder ClearString()
			{
				this.PrepareBuilder();
				this.result.hasString = false;
				this.result.string_ = "";
				return this;
			}
		}
		public const int StringFieldNumber = 1;
		private static readonly SKBuiltinString_t defaultInstance;
		private static readonly string[] _sKBuiltinStringTFieldNames;
		private static readonly uint[] _sKBuiltinStringTFieldTags;
		private bool hasString;
		private string string_ = "";
		private int memoizedSerializedSize = -1;
		public static SKBuiltinString_t DefaultInstance
		{
			get
			{
				return SKBuiltinString_t.defaultInstance;
			}
		}
		public override SKBuiltinString_t DefaultInstanceForType
		{
			get
			{
				return SKBuiltinString_t.DefaultInstance;
			}
		}
		protected override SKBuiltinString_t ThisMessage
		{
			get
			{
				return this;
			}
		}
		public string String
		{
			get
			{
				return this.string_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return true;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasString)
				{
					num += CodedOutputStream.ComputeStringSize(1, this.String);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private SKBuiltinString_t()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] sKBuiltinStringTFieldNames = SKBuiltinString_t._sKBuiltinStringTFieldNames;
			if (this.hasString)
			{
				output.WriteString(1, sKBuiltinStringTFieldNames[0], this.String);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasString)
			{
				num ^= this.string_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			SKBuiltinString_t sKBuiltinString_t = value as SKBuiltinString_t;
			return sKBuiltinString_t != null && (this.hasString == sKBuiltinString_t.hasString && (!this.hasString || this.string_.Equals(sKBuiltinString_t.string_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<SKBuiltinString_t, SKBuiltinString_t.Builder>.PrintField("String", this.hasString, this.string_, writer);
		}
		public static SKBuiltinString_t ParseFrom(byte[] data)
		{
			return SKBuiltinString_t.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private SKBuiltinString_t MakeReadOnly()
		{
			return this;
		}
		public static SKBuiltinString_t.Builder CreateBuilder()
		{
			return new SKBuiltinString_t.Builder();
		}
		public override SKBuiltinString_t.Builder ToBuilder()
		{
			return SKBuiltinString_t.CreateBuilder(this);
		}
		public override SKBuiltinString_t.Builder CreateBuilderForType()
		{
			return new SKBuiltinString_t.Builder();
		}
		public static SKBuiltinString_t.Builder CreateBuilder(SKBuiltinString_t prototype)
		{
			return new SKBuiltinString_t.Builder(prototype);
		}
		static SKBuiltinString_t()
		{
			SKBuiltinString_t.defaultInstance = new SKBuiltinString_t().MakeReadOnly();
			SKBuiltinString_t._sKBuiltinStringTFieldNames = new string[]
			{
				"String"
			};
			SKBuiltinString_t._sKBuiltinStringTFieldTags = new uint[]
			{
				10u
			};
			object.ReferenceEquals(SKBuiltinStringT.Descriptor, null);
		}
	}
}
